projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7e5281f
)
net: xilinx_ll_temac: Fix string overflow
author
Ricardo Ribalda Delgado
<
[email protected]
>
Tue, 26 Jan 2016 10:24:24 +0000
(11:24 +0100)
committer
Michal Simek
<
[email protected]
>
Wed, 27 Jan 2016 14:57:20 +0000
(15:57 +0100)
Size of this snprintf "lltemac.%lx" is bigger than 16 characters.
Replacing it with "ll_tem.%lx"
Signed-off-by: Ricardo Ribalda Delgado <
[email protected]
>
Reviewed-by: Bin Meng <
[email protected]
>
Reviewed-by: Tom Rini <
[email protected]
>
Signed-off-by: Michal Simek <
[email protected]
>
Reviewed-by: Michal Simek <
[email protected]
>
drivers/net/xilinx_ll_temac.c
patch
|
blob
|
history
diff --git
a/drivers/net/xilinx_ll_temac.c
b/drivers/net/xilinx_ll_temac.c
index 7cc86571e4952e001f2d5da234795abd520d223a..ca09546ab59f7f7d4b540eb6903bdacaa9a55815 100644
(file)
--- a/
drivers/net/xilinx_ll_temac.c
+++ b/
drivers/net/xilinx_ll_temac.c
@@
-303,7
+303,8
@@
int xilinx_ll_temac_initialize(bd_t *bis, struct ll_temac_info *devinf)
if (devinf->devname) {
strncpy(dev->name, devinf->devname, sizeof(dev->name));
} else {
- snprintf(dev->name, sizeof(dev->name), "lltemac.%lx", devinf->base_addr);
+ snprintf(dev->name, sizeof(dev->name), "ll_tem.%lx",
+ devinf->base_addr);
devinf->devname = dev->name;
}